import request from '@/utils/request'

export function getRoomPage(query) {
  return request({
    url: '/api/system/assignManage/dictionaries/getCompanyDictionariesList',
    method: 'post',
    data: query
  })
}

export function saveSysUser(form) {
  return request({
    url: '/api/system/assignManage/dictionaries/addCompanyDictionaries',
    method: 'post',
    data: form
  })
}

export function deleteSysUser(id) {
  return request({
    url: '/api/system/assignManage/dictionaries/deleteCompanyDictionaries?id=' + id,
    method: 'get',
  })
}

export function updateCompanyDictionaries(id) {
  return request({
    url: '/api/system/assignManage/dictionaries/updateCompanyDictionaries' + id,
    method: 'get',
  })
}

export function getLogById(id) {
  return request({
    url: '/api/system/log/detail',
    method: 'post',
    data: { 'id': id }
  })
}
